package com.yue.bean;

import org.springframework.beans.factory.annotation.Value;

public class Hb {
    private String str = "123";
    @Value("${hb.name}")
    private String hbName;
    public Hb(){
        System.out.println("constract method");
    }
    public void init(){
        System.out.println("init method");
        str = "456";
    }
    public void destory(){
        System.out.println("destory method");
    }

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public String getHbName() {
        return hbName;
    }

    @Override
    public String toString() {
        return "Hb{" +
                "str='" + str + '\'' +
                ", hbName='" + hbName + '\'' +
                '}';
    }

    public void setHbName(String hbName) {
        this.hbName = hbName;
    }
}
